package code.structure.module.configs.cmd
{
	import flash.utils.Dictionary;
	
	import code.structure.module.configs.ConfigModel;
	import code.structure.module.configs.data.HonorConfigData;

	/**
	 *
	 * @author CYoung
	 * 2014-7-27下午3:33:59
	 */
	public class AnalysisHonor
	{
		private var _dictionary:Dictionary;
		
		public function AnalysisHonor(data:Object, config:ConfigModel)
		{
			_dictionary = new Dictionary();
			parserData(data, config);
		}
		//解析成就数据
		private function parserData(data:Object, config:ConfigModel):void
		{
			var honor:HonorConfigData;
			for each (var i:Object in data) {
				honor = new HonorConfigData(i);
				honor.taskConfig = config.analysisTask.getTaskConfigById(honor.taskId);
				_dictionary[honor.id] = honor;
			}
		}
		
	}
}